/**
* cw
 */

package io.cw.controller;

import io.cw.common.utils.Result;
import io.cw.entity.ApiTestEntity;
import io.cw.service.impl.ApiTestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 测试
 *
 * @author  cw
 */
@RestController
@RequestMapping("/backend-manager")
@Api(tags = "测试类", produces = MediaType.APPLICATION_JSON_VALUE)
public class ApiTestController {

    @Autowired
    private ApiTestService apiTestService;

    @GetMapping("/test/{id}")
    @ApiOperation("测试")
    public Result<ApiTestEntity> userInfo(@PathVariable(value = "id") Long id){
        return new Result<ApiTestEntity>().ok(apiTestService.get(id));
    }

}